package kr.hkit.powerjava.chapter07;

public class CarTest {
	public static void main(String[] args) {
		Car myCar = new Car();
		
		System.out.println(myCar);
		
		Object car = myCar;
		
//		car. (object관련 메소드만 나온다)
		
		System.out.println(car);
		
		
		
		
		
/*		myCar.print();
//		myCar.color = "red";
		myCar.setColor("red");
		myCar.setSpeed(100);
		myCar.setGear(5);
//		myCar.speed = 100;
//		myCar.gear = 5;
		myCar.print();
		System.out.println(myCar);
		
//		Car myCar2 = new Car("blue", 20, 3);
		myCar2.color = "blue";
		myCar2.speed = 60;
		myCar2.gear = 3;
		myCar2.print();
		
		
		Car myCar2 = myCar;  //
		myCar2.setColor("blue");
		System.out.println(myCar);
		System.out.println(myCar2);*/
	}


}
